package studay.proxy;

/**
 * @program: 设计模式
 * @description: 代理商
 * @author: Tom
 * @create: 2022-01-07 15:50
 **/
public class DigitalSellProxy implements DigitalSell{

    private DigitalSell digitalSellObj = new DigitalSellReal();

    @Override
    public void sell() {

        makeAddress();
        digitalSellObj.sell();
        makeAD();
    }

    private void makeAddress(){
        System.out.println("一个人流量很高的地址");
    }

    private void makeAD(){
        System.out.println("做广告");
    }
}
